package com.steve.xfood.repository;

import com.steve.xfood.dataobject.OrderDetail;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author steve
 * @date 2020/5/7 14:29
 */
public interface OrderDetailRepository extends JpaRepository<OrderDetail, String> {

    /**
     * 根据订单id查询订单详情数据
     * @param orderId 订单id
     * @return List<OrderDetail> 订单详情数据
     */
    List<OrderDetail> findByOrderId(String orderId);
}
